package com.igelato.controller.Shop;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;

@Data
public class ShopAddDto implements Serializable {

    @NotNull(message = "city_id不能为空")
    private Integer city_id;

    @NotBlank(message = "shop_name不能为空")
    private String shop_name;

    @NotBlank(message = "address不能为空")
    private String address;

    @ApiModelProperty("纬度")
    @NotNull(message = "latitude不能为空")
    private Double latitude;

    @ApiModelProperty("经度")
    @NotNull(message = "longitude不能为空")
    private Double longitude;

    @ApiModelProperty("联系电话（有可能不是店长的手机号）（如果值为空则使用店长的手机号）")
    @NotBlank(message = "mobile不能为空")
    private String mobile;

    @ApiModelProperty("店长id")
    @NotNull(message = "owner_id不能为空")
    private Integer owner_id;

    @ApiModelProperty("开店时间")
    @NotNull(message = "open_date不能为空")
    private LocalDate open_date;

    @ApiModelProperty("所有类别和商品列表（json）")
    @NotBlank(message = "cate_list_json不能为空")
    private String cate_list_json;

    @ApiModelProperty("早上开门时间")
    @NotNull(message = "open_time不能为空")
    private LocalTime open_time;

    @ApiModelProperty("晚上关门时间")
    @NotNull(message = "close_time不能为空")
    private LocalTime close_time;

    @ApiModelProperty("配送范围（公里）")
    @NotNull(message = "delivery_scope不能为空")
    private Double delivery_scope;

    @NotNull(message = "sort不能为空")
    private Integer sort;

    @ApiModelProperty("1：展示；-1：不展示；")
    @NotNull(message = "status不能为空")
    private Integer status;

}
